import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'dealMediaType'
})
export class DealMediaTypePipe implements PipeTransform {

  transform(value: any, args?: any): any {
    if(value=='pic'){
      let data=['jpg', 'png', 'jpeg', 'gif','pdf','bmp'];
      return data;
    }else{
      let data1=['mp4','mov','mkv','mp3'];
      return data1;
    }
  }

}
